import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant'
import 'vant/lib/index.css'
import 'amfe-flexible'
import 'amfe-flexible/index.js'
import './common/icon/iconfont.css'
import './common/css/zcm-main.css'
import http from './https'
// 地图
import VueAMap from 'vue-amap'
Vue.use(VueAMap)
VueAMap.initAMapApiLoader({
  key: '9cf6fe9f3151446c4826951089910c57',
  plugin: [
    'AMap.Autocomplete',
    'AMap.PlaceSearch',
    'AMap.Scale',
    'AMap.OverView',
    'AMap.ToolBar',
    'AMap.MapType',
    'AMap.PolyEditor',
    'AMap.CircleEditor',
    'AMap.Map',
    'AMap.Marker',
    'AMap.Pixel',
    'AMap.Polyline'
  ],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4'
})



Vue.prototype.$http = http
Vue.use(Vant)
Vue.config.productionTip = false
// 配置全局的中央事件总线
Vue.prototype.$bus = new Vue()

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')